package org.example.service.Impl;

import jakarta.annotation.Resource;
import org.example.mapper.Deptmapper;
import org.example.service.DeptService;
import org.example.util.JsonResult;
import org.example.util.ResultTool;
import org.springframework.stereotype.Service;

/**
 * @Auther:Liu
 * @Testname:DeptServiceImpl
 * @Date:2025/7/31 15:46
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    private Deptmapper deptmapper;

    @Override
    public JsonResult findAll() {
        return ResultTool.success(deptmapper.findAll());
    }
}
